<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" media="screen" href="../../css/bootstrap.min.css">
</head>
<body>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
	<form class="form-horizontal" onsubmit="return false" id="form">
		<fieldset>
			<div class='form-group'>
				<label class='col-md-2 control-label'>brxxid</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='brxxid' type='text' name='brxxid' id='brxxid' data-bv-notempty='true' data-bv-notempty-message='brxxid 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>mzh</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='mzh' type='text' name='mzh' id='mzh' data-bv-notempty='true' data-bv-notempty-message='mzh 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>ybbh</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='ybbh' type='text' name='ybbh' id='ybbh' data-bv-notempty='true' data-bv-notempty-message='ybbh 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>dcrq</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='dcrq' type='text' name='dcrq' id='dcrq' data-bv-notempty='true' data-bv-notempty-message='dcrq 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>zdyy</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='zdyy' type='text' name='zdyy' id='zdyy' data-bv-notempty='true' data-bv-notempty-message='zdyy 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>zzys</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='zzys' type='text' name='zzys' id='zzys' data-bv-notempty='true' data-bv-notempty-message='zzys 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>dcy</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='dcy' type='text' name='dcy' id='dcy' data-bv-notempty='true' data-bv-notempty-message='dcy 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>A1name</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='A1name' type='text' name='A1name' id='A1name' data-bv-notempty='true' data-bv-notempty-message='A1name 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>A2jg</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='A2jg' type='text' name='A2jg' id='A2jg' data-bv-notempty='true' data-bv-notempty-message='A2jg 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>lxdh</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='lxdh' type='text' name='lxdh' id='lxdh' data-bv-notempty='true' data-bv-notempty-message='lxdh 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>xzzsheng</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='xzzsheng' type='text' name='xzzsheng' id='xzzsheng' data-bv-notempty='true' data-bv-notempty-message='xzzsheng 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>xxzshi</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='xxzshi' type='text' name='xxzshi' id='xxzshi' data-bv-notempty='true' data-bv-notempty-message='xxzshi 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>xzzxian</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='xzzxian' type='text' name='xzzxian' id='xzzxian' data-bv-notempty='true' data-bv-notempty-message='xzzxian 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>cqjzsheng</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='cqjzsheng' type='text' name='cqjzsheng' id='cqjzsheng' data-bv-notempty='true' data-bv-notempty-message='cqjzsheng 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>ccjzshi</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='ccjzshi' type='text' name='ccjzshi' id='ccjzshi' data-bv-notempty='true' data-bv-notempty-message='ccjzshi 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>ccjzxian</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='ccjzxian' type='text' name='ccjzxian' id='ccjzxian' data-bv-notempty='true' data-bv-notempty-message='ccjzxian 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>cqjzdym</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='cqjzdym' type='text' name='cqjzdym' id='cqjzdym' data-bv-notempty='true' data-bv-notempty-message='cqjzdym 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>csrq</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='csrq' type='text' name='csrq' id='csrq' data-bv-notempty='true' data-bv-notempty-message='csrq 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>xb</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='xb' type='text' name='xb' id='xb' data-bv-notempty='true' data-bv-notempty-message='xb 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>sg</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='sg' type='text' name='sg' id='sg' data-bv-notempty='true' data-bv-notempty-message='sg 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>tz</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='tz' type='text' name='tz' id='tz' data-bv-notempty='true' data-bv-notempty-message='tz 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>whcd</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='whcd' type='text' name='whcd' id='whcd' data-bv-notempty='true' data-bv-notempty-message='whcd 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>hyzk</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='hyzk' type='text' name='hyzk' id='hyzk' data-bv-notempty='true' data-bv-notempty-message='hyzk 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>zy</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='zy' type='text' name='zy' id='zy' data-bv-notempty='true' data-bv-notempty-message='zy 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>lrrq</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='lrrq' type='text' name='lrrq' id='lrrq' data-bv-notempty='true' data-bv-notempty-message='lrrq 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>createtime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='createtime' type='text' name='createtime' id='createtime' data-bv-notempty='true' data-bv-notempty-message='createtime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>updatetime</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='updatetime' type='text' name='updatetime' id='updatetime' data-bv-notempty='true' data-bv-notempty-message='updatetime 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>delflag</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='delflag' type='text' name='delflag' id='delflag' data-bv-notempty='true' data-bv-notempty-message='delflag 不能为空'>
				</div>
			</div>
			<div class='form-group'>
				<label class='col-md-2 control-label'>remarks</label>
				<div class='col-md-10'>
					<input class='form-control' placeholder='remarks' type='text' name='remarks' id='remarks' data-bv-notempty='true' data-bv-notempty-message='remarks 不能为空'>
				</div>
			</div>


			<div class="form-actions">
				<div class="row" align="center">
					<div class="col-md-12">
					    <button class="btn btn-primary" onclick="location.href='bxbBrxxList.html'">返回</button>
						<button class="btn btn-primary" type="submit" onclick="add()">
							<i class="fa fa-save"></i> 保存
						</button>
					</div>
				</div>
			</div>

		</fieldset>
	</form>
</div>
	<script type="text/javascript" src="../../js/libs/jquery-2.1.1.min.js"></script>
	<script type="text/javascript" src="../../js/jq.js"></script>
	<script type="text/javascript" src="../../js/plugin/bootstrapvalidator/bootstrapValidator.min.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript">
		layui.use(['layer','laydate'], function(){
		    var layer = layui.layer;
		});
		
		function add() {
			$('#form').bootstrapValidator();
			var bootstrapValidator = $("#form").data('bootstrapValidator');
			bootstrapValidator.validate();
		    if(!bootstrapValidator.isValid()){
			   return;
		    }
		    
		    var formdata = $("#form").serializeObject();

			$.ajax({
				type : 'post',
				url : '/bxbBrxxs',
				contentType: "application/json; charset=utf-8",  
				data : JSON.stringify(formdata),
				success : function(data) {
					layer.msg("添加成功", {shift: -1, time: 1000}, function(){
                        location.href = "bxbBrxxList.html";
                    });
				}
			});
		}
		
	</script>
</body>
</html>
